/**
 * 投递记录相关API接口
 */

import request from '../utils/request'
import { API_PATHS } from './config'

const deliveryApi = {
  /**
   * 投递
   * @param {Object} deliveryRecordDto - 投递数据
   * @param {number} deliveryRecordDto.requirementId - 需求ID
   * @returns {Promise} 投递结果
   */
  addDeliveryRecord(deliveryRecordDto) {
    return request.post(API_PATHS.DELIVERY.ADD, deliveryRecordDto)
  }
}

export default deliveryApi
